package entity;

import java.util.Arrays;


public class Order {
        //订单编号
        private Long orderId;
        //订单金额
        private double price;
        //订单商品
        private Goods[] goods;

        public Long getOrderId() {
            return orderId;
        }

        public void setOrderId(Long orderId) {
            this.orderId = orderId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public Goods[] getGoods() {
            return goods;
        }

        public void setGoods(Goods[] goods) {
            this.goods = goods;
        }

        @Override
        public String toString() {
            return "Order{" +
                    "orderId=" + orderId +
                    ", price=" + price +
                    ", goods=" + Arrays.toString(goods) +
                    '}';
        }
}
